package main

import (
	"fmt"
	"time"
)

const FORMAT string = "2006-01-02 15:04:05"

func main() {
	now := time.Now()
	fmt.Println(now.Format(FORMAT))	//当前时间
	oneHourLater := now.Add(time.Hour)	//1小时之后
	fmt.Println(oneHourLater.Format(FORMAT))
}
